@import '~ant-design-vue/dist/antd.less';
@import './theme-basic.less';

//.has-error .ant-form-explain,
//.has-error .ant-form-split {
//  color: @primary-color;
//}

.tree-popover-opera-btn {
  .ant-popover-inner-content {
    padding: 0;
    .popover-btn {
      cursor: pointer;
      font-size: 14px;
      line-height: 32px;
      color: #37383a;
      padding: 0 12px;
      &:hover {
        color: @primary-color;
      }
    }
  }
}

.ant-modal-mask,
.ant-modal-wrap {
  z-index: 1100;
}

.ant-table-thead > tr > th,
.ant-table-tbody > tr > td {
  padding: 10px;
}

.ant-table-wrapper {
  .ant-checkbox-checked {
    .ant-checkbox-inner {
      background-color: @primary-color;
      border-color: @primary-color;
    }
    &:hover::after {
      border-color: @primary-color;
    }
  }
  .ant-checkbox:hover .ant-checkbox-inner,
  .ant-checkbox-input:focus + .ant-checkbox-inner {
    border-color: @primary-color;
  }
  .ant-checkbox-indeterminate .ant-checkbox-inner::after {
    background-color: @primary-color;
  }

  td {
    .red,
    .green,
    .orange,
    .blue,
    .gray {
      display: inline-block;
      min-width: 60px;
      margin-bottom: 2px;
    }

    .red {
      background-color: #fd5454;
      border-color: #fd5454;
      color: #fff;
      height: 24px;
      padding-left: 6px;
      padding-right: 7px;
    }
    .green {
      background-color: @primary-color;
      border-color: @primary-color;
      color: #fff;
      height: 24px;
      padding-left: 6px;
      padding-right: 7px;
    }
    .orange {
      background-color: #f3993c;
      border-color: #f3993c;
      color: #fff;
      height: 24px;
      padding-left: 6px;
      padding-right: 7px;
    }
    .blue {
      background-color: #69a4fd;
      border-color: #69a4fd;
      color: #fff;
      height: 24px;
      padding-left: 6px;
      padding-right: 7px;
    }
    .gray {
      background-color: #ccc;
      border-color: #ccc;
      color: #fff;
      height: 24px;
      padding-left: 6px;
      padding-right: 7px;
    }
  }
}

.ant-tabs-tab {
  font-size: 14px;
}

.ant-form-item-required::before {
  color: @primary-color;
}

.ant-input {
  border-color: #ccc;
}

.ant-btn {
  border-radius: 2px;
  height: 36px;
  box-shadow: none;
  &:hover,
  &:focus {
    border-style: solid;
    border-width: 1px;
  }
}

.ant-input {
  border-radius: 2px;
}

.has-error .ant-input-number-focused,
.has-error .ant-time-picker-input-focused,
.has-error .ant-input-number:focus,
.has-error .ant-time-picker-input:focus {
  box-shadow: none !important;
}

.ant-form-item-required::before {
  font-size: 16px;
}

.ant-table-tbody > tr.ant-table-row-selected td {
  background-color: #fff;
}
.red-txt {
  color: #fd5454;
}
.green-txt {
  color: @primary-color;
}
.orange-txt {
  color: #f3993c;
}
.blue-txt {
  color: #1943dd;
}

.ant-table-thead > tr:first-child > th:first-child {
  border-radius: 0;
}
.ant-table-thead > tr:first-child > th:last-child {
  border-top-right-radius: 0;
}
.ant-select-selection {
  border-radius: 2px;
}

.ant-pagination-jump-next-custom-icon {
  display: none;
}
.ant-table-row-cell-break-word .ant-btn-link {
  display: block;
  width: 100%;
  text-align: left;
  a {
    display: block;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    color: @primary-color !important;
    text-decoration: underline;
  }
}

.ant-btn[disabled]:not(.login-container .ant-btn[disabled]) {
  background: #f2f2f2 !important;
  border-color: #ccc !important;
  color: #6b6c70 !important;
}
